<?php
// +----------------------------------------------------------------------
// | Tpli [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 网站设置模型
// +----------------------------------------------------------------------
namespace app\web\model;

use think\Model;

class Work extends Model
{
  public function voc()
  {
    //关联工作表一对一
    return $this->belongsTo('vocation','voc_id','id');
  }
}
?>